﻿@model List<Event>

@{    
    Category category = ViewBag.Category;

    int index = 0;
}

@foreach (Event item in Model)
{
    index++;

    <div class="col-md-3 col-sm-6 col-xs-6">
       @Html.Action("_EventItem", new { eventt = item })
    </div>

    if (index % 4 == 0)
    {
        <div class="clearfix visible-lg visible-md"></div>
    }
    if (index % 2 == 0)
    {
        <div class="clearfix visible-sm visible-xs"></div>
    }
}